package ltd.smallwang.app.task.convert;

import ltd.smallwang.client.task.dto.TaskExecuteRecordDto;
import ltd.smallwang.infrastructure.task.db.model.TaskExecuteRecordPo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author justd
 * @description 功能描述
 * @since 2024-05-18 21:52
 **/
@Mapper
public interface TaskExecuteRecordConvert {

  TaskExecuteRecordConvert INSTANCE = Mappers.getMapper(TaskExecuteRecordConvert.class);

  @Mapping(source = "taskCategoryPo", target = "taskCategoryDto")
  TaskExecuteRecordDto convert(TaskExecuteRecordPo taskExecuteRecordPo);
}
